package 数据结构.泛型类;

public class ComparableBox<T extends Comparable<T> >{
    private T content;
    public void setContent(T content) {
        this.content = content;
    }
    public T getContent() {
        return content;
    }
    public int compareTo(T other){
        return content.compareTo(other);
    }
}
